package com.css.zfzx.fwsjcj.modules.taskmanage.taskfrom.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author
 * @program
 * @description
 * @create 2022/1/17 10:22
 **/
@Data
public class VillagePubTaskVo implements IExcelDataModel, IExcelModel {
    @NotNull(message = "缺失")
    @Excel(name = "所属省份", orderNum = "4", width = 8)
    private String belongtoProvince;

    @NotNull(message = "缺失")
    @Excel(name = "所属地级市", orderNum = "5", width = 15)
    private String belongtoCity;

    @NotNull(message = "缺失")
    @Excel(name = "所在区", orderNum = "6", width = 15)
    private String belongtoArea;

    @NotNull(message = "缺失")
    @Max(value = 180, message = "经度不大过180")
    @Min(value = -180, message = "经度最小于-180")
    @Excel(name = "建筑物经度", orderNum = "1", width = 8)
    private String bulidingLongitude;

    @NotNull(message = "缺失")
    @Max(value = 180, message = "纬度不大过180")
    @Min(value = -180, message = "纬度最小于-180")
    @Excel(name = "建筑物纬度", orderNum = "2", width = 8)
    private String bulidingLatitude;

    @NotNull(message = "缺失")
    @Excel(name = "建筑地址", orderNum = "22", width = 8)
    private String buildingAddress;

    @NotNull(message = "缺失")
    @Excel(name = "被调查建筑分类", orderNum = "3", width = 8)
    private String bulidingType;

    @NotNull(message = "缺失")
    @Excel(name = "所属乡/镇", orderNum = "7", width = 15)
    private String belongtoTown;

    @NotNull(message = "缺失")
    @Excel(name = "所属村", orderNum = "7", width = 15)
    private String belongtoVillage;

    @NotNull(message = "缺失")
    @Excel(name = "建筑名称", orderNum = "8", width = 8)
    private String buildingName;

    @NotNull(message = "缺失")
    @Excel(name = "结构类型", orderNum = "10", width = 8)
    private String structureType;

    @NotNull(message = "缺失")
    @Excel(name = "建筑地上层数", orderNum = "12", width = 8)
    private Integer buildingUpNum;

    @NotNull(message = "缺失")
    @Excel(name = "建筑地下层数", orderNum = "13", width = 8)
    private Integer buildingDown;

    @NotNull(message = "缺失")
    @Excel(name = "建筑面积", orderNum = "13", width = 15)
    private Integer buildingArea;

    @NotNull(message = "缺失")
    @Excel(name = "建造时间", orderNum = "15", width = 8)
    private String buildingTime;

    @NotNull(message = "缺失")
    @Excel(name = "房屋用途", orderNum = "15", width = 8)
    private String housePurpose;

    @NotNull(message = "缺失")
    @Excel(name = "原设防类别", orderNum = "15", width = 8)
    private String oldFortificationType;

    @NotNull(message = "缺失")
    @Excel(name = "原设防烈度", orderNum = "18", width = 8)
    private String oldFortificationIntensity;

    @NotNull(message = "缺失")
    @Excel(name = "有无明显可见的裂缝、变形、倾斜等", orderNum = "23", width = 8)
    private String isDamage;

    @NotNull(message = "缺失")
    @Excel(name = "是否进行过抗震加固/抗震加固时间", orderNum = "21", width = 8)
    private String isSeismicReinforce;

    @NotNull(message = "缺失")
    @Excel(name = "初步结论", orderNum = "25", width = 8)
    private String result;

    @Excel(name = "疑似存在安全隐患", orderNum = "25", width = 8)
    private String suspectedSafetyHazard;

    @NotNull(message = "缺失")
    @Excel(name = "采集员账号", orderNum = "25", width = 8)
    private String userCode;

    // 父类属性，需要复写get、set
    private Integer rowNum;
    private String errorMsg;
}
